package com.study.a01mystream;

import java.util.ArrayList;
import java.util.Arrays;

public class StreamDemo4
{
    public static void main(String[] args) {
        //数组
        int[] arr={1,2,3,4,5,6,7,8,9,10};


        String[] arr2={"1","2","3","4","5","6","7","8","9","10"};

        Arrays.stream(arr).forEach(s-> System.out.println(s));

        System.out.println("------------");
        Arrays.stream(arr2).forEach(s-> System.out.println(s));
    }
}
